//
//  ShellNodeViewController.m
//  ShellWallert
//
//  Created by lvzhao on 2019/10/23.
//  Copyright © 2019 VV. All rights reserved.
//

#import "ShellNodeViewController.h"
#import "ShellNodeView.h"
#import "ShellNodeViewModel.h"

@interface ShellNodeViewController ()
@property (nonatomic,strong) ShellNodeView *nodeView;
@property (nonatomic,strong) ShellNodeViewModel *viewModel;

@end

@implementation ShellNodeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = LZLocalizedString(@"节点说明");
    
    [self setupUI];
}
#pragma mark - setupUI
- (void)setupUI{
    [self.view addSubview:self.nodeView];
    [self.nodeView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(0);
    }];
}

#pragma mark - actions

#pragma mark - custool

#pragma mark - get && set


- (ShellNodeView *)nodeView{
    if(!_nodeView){
        _nodeView = [[ShellNodeView alloc] initViewModel:self.viewModel];
    }
    return _nodeView;
}

- (ShellNodeViewModel *)viewModel{
    if(!_viewModel){
        _viewModel = [[ShellNodeViewModel alloc] init];
        _viewModel.levelDictionary = self.levelDictionary;
    }
    return _viewModel;
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
